package org.huangxq.bigscreen.service

import org.huangxq.bigscreen.data.ComplexIndConfigData
import org.huangxq.bigscreen.data.ComplexIndConfigId
import org.huangxq.bigscreen.repository.ComplexIndConfigRepository
import org.springframework.stereotype.Service

@Service
class ComplexIndConfigService(val complexIndConfigRepository: ComplexIndConfigRepository) {

    fun getIndConfig(reportId: String, indId: String) = complexIndConfigRepository.findById(ComplexIndConfigId(reportId, indId)).get()

    fun saveIndConfig(complexIndConfigData: ComplexIndConfigData) = complexIndConfigRepository.save(complexIndConfigData)

}